Testing and Searching Pattern Avoiding Sequences
نویسنده
چکیده
A sequence avoids a pattern π ∈ R if there is no subsequence that shares the same relative ordering as π. We develop techniques to understand how many queries it takes to test whether a sequence is π-avoiding or -far from π-avoiding. We initiate the study of searching in π-avoiding or nearly π-avoiding sequences, and show that it is possible to efficiently find most elements in a nearly (2, 1)-avoiding, i.e. sorted, sequence. Pattern avoidance is a specific instance of hereditary properties, which are closed under taking subsequences. We prove the existence of general properties that require linear queries to test, implying the existence of hereditary properties that require linear queries to test.
منابع مشابه
Searching for Optimal Homing Sequences for Testing Timed Communication Protocols
With the eruption of communication technology and its supportive protocols, the field of testing of timed-IUT (Implementation Under Test with time constraints) was quick to follow. New and extended test generation methods using timed automata were in the need. Many papers were written on a broad range of timed automata testing. Few papers, however, dealt with generation of state identification ...
متن کاملBinary Words Avoiding xxx and Strongly Unimodal Sequences
In previous work, Currie and Rampersad showed that the growth of the number of binary words avoiding the pattern xxxR was intermediate between polynomial and exponential. We now show that the same result holds for the growth of the number of binary words avoiding the pattern xxRx. Curiously, the analysis for xxRx is much simpler than that for xxxR. We derive our results by giving a bijection be...
متن کاملPatterns in Inversion Sequences II: Inversion Sequences Avoiding Triples of Relations
Inversion sequences of length n, In, are integer sequences (e1, . . . , en) with 0 ≤ ei < i for each i. The study of patterns in inversion sequences was initiated recently by Mansour-Shattuck and Corteel-Martinez-Savage-Weselcouch through a systematic study of inversion sequences avoiding words of length 3. We continue this investigation by reframing the notion of a length-3 pattern from a “wor...
متن کاملClassical Sequences Revisited with Permutations Avoiding Dotted Pattern
Inspired by the definition of the barred pattern-avoiding permutation, we introduce the new concept of dotted pattern for permutations. We investigate permutations classes avoiding dotted patterns of length at most 3, possibly along with other classical patterns. We deduce some enumerating results which allow us to exhibit new families of permutations counted by the classical sequences: 2n, Cat...
متن کاملFast search in DNA sequence databases using punctuation and indexing
Exact pattern searching in DNA sequence databases has applications in identification of highly conserved regulatory sequences, the design of hybridization probes, and improving performance of approximate homology searching tools such as BLAST and BLAT. We propose a new pattern searching algorithm, CompressedPunctuated-Boyer-Moore (cp-BM), to enhance exact pattern match searches of DNA sequences...
متن کامل